#ifndef MESSAGE_QUEUE_H
#define MESSAGE_QUEUE_H

#include <iostream>
#include <queue>
#include "Lockable.h"

struct MessageQueueEntry
{
	int    descSupp;
	size_t length;
	char*  message;
};

class MessageQueue : public Lockable, private std::queue<MessageQueueEntry>
{
public:
	void QueueMessage( std::istream& );
	bool Empty() const;
	MessageQueueEntry Next();
};

#endif